?
avatar mbabker
mbabker
18 Feb 2017

Presently, the JPATH_CACHE path constant is a "dynamic" constant based on the running application; it is always defined as JPATH_BASE . '/cache resulting in separate filesystem caches for the frontend, backend, and installation applications. This is the only cache store to create separate cache storage locations based on the active application; using any other handler stores all data in a single store regardless of application. Additionally, this behavior is inconsistent with the $cache_path configuration value that is now exposed in 3.7 which uses a single path for all filesystem related caching if set.

I propose that as of 4.0, JPATH_CACHE has a constant value of JPATH_ADMINISTRATOR . '/cache resulting in the filesystem cache using a single storage location for all data, removing the need for some conditional behaviors, and in general making this configuration more consistent with other adapters.

avatar mbabker mbabker - open - 18 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Feb 2017
avatar yvesh
yvesh - comment - 18 Feb 2017

+1 for j4

avatar nibra
nibra - comment - 18 Feb 2017

All in to reduce the number of 'dynamic' constants (which should be environment variables instead, BTW)..

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category Cache Feature Request
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status New Needs Review
avatar mbabker
mbabker - comment - 27 Apr 2017

#14262 is the PR for this.

avatar mbabker mbabker - change - 27 Apr 2017
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2017-04-27 01:15:42
Closed_By mbabker
avatar mbabker mbabker - close - 27 Apr 2017

Add a Comment

Login with GitHub to post a comment