do not configure a Path to Cache Folder in Global config.
Joomla will now have 2 cache default folders: one for the front-end and one for the back-end.
When you (in the back-end) do a Purge Expired Cache the cache object will set the cache base to JPATH_CACHE
in the back-end JPATH_CACHE is defined as:
define('JPATH_CACHE', JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'cache');
This means that ONLY the administrator cache is purged, and not the cache files created for the front-end rendering this function useless IMO.
Purging Expired cache should purge BOTH administrator and site cache files
Only Administrator cache is purged
Same for Joomla 4: Joomla 4 also nly purges administator cache and not site cache (from looking at the code)
Labels |
Added:
No Code Attached Yet
Removed: ? |
Title |
|
if i remember correctly it used to be /cache but for new sites it was changed to administrator/cache
Do you have a cache site location configured in global config? of not (empty) purging the cache from the back-end will purge administrator/cache where front-end cache will be in /cache
Both Joomla 4 and Joomla 3 (and 4.0-dev and 3.10-dev) distribute a /cache
folder and the reporter is right in saying that folder should be cleared when Purge Expired Cache
and Clear Cache
is used.
Do you have a cache site location configured in global config?
No
Sorry @PhilETaylor is correct my brain wasnt working - I was looking at a site where cache wasn't actually enabled
In joomla 3 there is a selector for site or admin when clearing the cache
Labels |
Added:
bug
|
Looking at all my sites the only cache folder that contains cache is administrator/cache