?
avatar remotehelp
remotehelp
17 Apr 2015

Clear cache not working if define custom path for JPATH_CACHE in custom defines.php - in this case need clear cache manually through FTP manager.

avatar remotehelp remotehelp - open - 17 Apr 2015
avatar bertmert
bertmert - comment - 18 Apr 2015

I don' know if I understand aright. Normally one shouldn't change constants in file defines.php or am I wrong?

So, I entered new line/absolute path in my configuration.php

public $cache_path = '/absolute/path/to/my/joomla34/mycache';

Created new folder /mycache/ in Joomla root.
Activated caching in configuration.

And all worked as expected. All cached folder/files in /mycache/ and could clear cache in Joomla backend (administrator/index.php?option=com_cache).

avatar mbabker
mbabker - comment - 18 Apr 2015

The path constants can be overridden (see https://github.com/joomla/joomla-cms/blob/staging/index.php#L25-L34)

avatar joomdonation
joomdonation - comment - 18 Apr 2015

Unfortunately, I don't see an easy way to fix this issue, so if you want to use custom path for cache, you should use the solution which @bertmert mentioned above

avatar bertmert
bertmert - comment - 18 Apr 2015

The path constants can be overridden (see https://github.com/joomla/joomla-cms/blob/staging/index.php#L25-L34)

I didn't know that. Thank you.

avatar remotehelp
remotehelp - comment - 20 Apr 2015

@bertmert - "public $cache_path = '...'" worked fine! This var ($cache_path) no by default in configuration.php... Where I can get full list variable's allowed for configuration.php?

Thank.

avatar zero-24
zero-24 - comment - 29 Apr 2015

Closing as the issue is fixed.

@remotehelp

Where I can get full list variable's allowed for configuration.php?

try: https://raw.githubusercontent.com/joomla/joomla-cms/staging/installation/configuration.php-dist

avatar zero-24 zero-24 - change - 29 Apr 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-04-29 22:11:16
Closed_By zero-24
Labels Removed: ?
avatar zero-24 zero-24 - close - 29 Apr 2015

Add a Comment

Login with GitHub to post a comment