WebsiteBaker Support (2.8.x) > Templates, Menus & Design
REVAMDS Page Cache for WebsiteBaker
Tez Oner:
Thanks Jacobi for the support to the PageCache ;)
And yeh I'll have to publish an 'official' version, a workout
when developing / admin changes is to set the cache time to 0
(and to flush / empty the folder with cache files).
Plan is to make this automatically when Login ;) but that to
much for a 'standalone' script. Should be a module or something.
Anyone free to collaborate with me to this?
Cheerz,
Tez Oner
Ruud:
--- Quote from: Tez Oner on February 11, 2016, 09:46:29 PM ---Plan is to make this automatically when Login ;)
....
Anyone free to collaborate with me to this?
--- End quote ---
If you want the admin just see the live pages always, add this as first line (after the <?php line) in start.php
--- Code: (untested) ---if($wb->is_authenticated()) return;
--- End code ---
This will ignore the caching completely.
Recreating the cache on every pageload when logged-in can be done in start.php directly after the line where $cachefile is declared (line 7).
--- Code: (untested) ---if($wb->is_authenticated() && file_exists($cachefile)) unlink($cachefile);
--- End code ---
This will delete an existing cached version and recreate a new one.
Tez Oner:
Hey Ruud,
Thanks that could be a workaround, but I'm more thinking of a 'Flush Cache' feature
and an interface for the Cache.
Cheerz,
Tez Oner
Navigation
[0] Message Index
[*] Previous page
Go to full version