Loading...
 
Skip to main content

Wrong template_c caching in multi Tiki

Status
Open
Subject
Wrong template_c caching in multi Tiki
Version
17.x
Category
  • Error
Resolution status
New
Submitted by
Gabriele Garuglieri
Lastmod by
Gabriele Garuglieri
Rating
(1)
Description

Hi all,
i've just installed Tiki and i'm experimenting with multi configurations (at the moment on my Windows pc).
I've seen there is a problem in caching the templates compilations.

In lib/init/smarty.php there is:

Copy to clipboard
$this->setCompileDir(TIKI_PATH . "/temp/templates_c");

while instead in multi configuration it should be "/temp/templates_c/$tikidomain"

Infact in tiki-admin_system.php there is:

Copy to clipboard
$templates_c = $cachelib->count_cache_files("temp/templates_c/$tikidomain");


This means that in "System Administration/Clear Cache Content" panel, the cache content is always shown as 0 and files cached by smarty compilations in "/temp/templates_c" cannot be deleted from that panel and must be cleared manually.

Regards,
Gabriele

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6459
Created
Friday 29 September, 2017 12:15:30 UTC
by Gabriele Garuglieri
LastModif
Friday 29 September, 2017 12:43:36 UTC


Show PHP error messages