![]() |
Hi Orban! Merry Christmas.
Question: Does this hack automatically delete the cached template when the template is changed or updated? Mine is doing something strange. The only way I can view an updated template in the browser is to turn off your cacher, update the template, load the page. Then I turn the cacher back on. It seems as if the cache is still there until I turn the cacher off. LMK what this means. Thanks! |
Quote:
Quote:
|
Quote:
Just like Kihon Kata said, changes aren't saved in the template cache on my site also and I need to turn it off and on again for that. |
Most of those plugins modify vB quite a lot (use a lot of hooks). So it's quite easy for them to mess something up. Can you try to enable them 1 by 1 on a dev board so we can track down the culprit? I can then maybe give you a fix.
|
I disabled all products, still the same two problems (and there are no file edits).
But I think it's just the same problem like I had after enabling the mod in the options, the include statement is wrong (I posted a fix for the Admin/options problem). I changed the third instance of the include statement too and the archive was fixed (without creating new errors on other parts of the site) :) The template saving bug isn't solved with it. |
Quote:
|
I downloaded a fresh 3.6.4 just now and it seems they changed the header of their files.
You have to change template_cache.php:99 (or download the new template_cache.php) from Code:
if (strpos(CVS_REVISION, 'template.php') OR $settings_changed) Code:
if (strpos($_SERVER['SCRIPT_NAME'], 'template.php') OR $settings_changed) I still can't reproduce the errors RS_Jelle is encountering. Both include('template_cache.php') and require_once('./template_cache.php') work fine for me. |
Indeed, I think:
PHP Code:
PHP Code:
Why not change it also if it works like that for everyone :) Thanks for the clear cache update, it works fine now. |
So, switching to "require_once('./template_cache.php');" and using the new template_cache fixed all your problems?
My idea is that include() is weaker. If you upgrade your board, move to a new server, and forget template_cache.php, it won't break anything if you miss the file, because include() will just complain about a missing file then. Require will stop the execution. |
Include also works if you add ./, I understand your opinion about moving servers etc.
So it would become: PHP Code:
|
All times are GMT. The time now is 08:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|