CE Cache
ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From Causing Effect
Ce-cache not refreshing
Support (Resolved)
Abhilekha
|
Posted: 18 June 2014 09:09 AM |
|
|
|
I am looking for technical support here. Can you help in refreshing the cache, I get an error - “An unexpected response was received:”
The popup appears when I try to delete cache, then after adding some time for refresh, I wait there and got this error message :(
Can anybody advice, if I am doing something wrong?
|
|
|
Causing Effect - Aaron Waldon
|
Posted: 18 June 2014 04:23 PM |
# 1
|
|
Developer
|
Hi Abhilekha!
That means that the URL for the module in the control panel was not reached when the asynchronous JavaScript request was made. There are several things that will prevent asynchronous cache breaking from working. For example, if the site is protected with http authentication via .htaccess and requires a password to access (view the workaround here if your using .htaccess password protection), or if the ExpressionEngine system is put into ‘Offline’ mode. Basically, if a JavaScript request cannot reach the site for any reason, the asynchronous cache breaking will not work.
Here are some things to double check:
- Is the site in offline mode? If so, it needs to be on for module ACT requests to work.
- Is the site URL correct in the general configuration settings?
- Are you removing index.php from your URLs? If not, that needs to be done.
- Are you using PHP 5.2+?
Please let me know what you find out!
|
|
|
Abhilekha
|
Posted: 19 June 2014 04:44 AM |
# 2
|
|
|
Thanks for the reply Aaron. Yeah, these all settings are OK, php version is 5.3.3 I found one config variable $config[‘ce_cache_async’] = ‘no’ this was not set in my config. I am trying to refresh cache once again after adding this. I hope, you won’t mind if I post something here again.
|
|
|
Abhilekha
|
Posted: 19 June 2014 07:24 AM |
# 3
|
|
|
No luck :( The site is neither off, not has http password, using php 5.3.3 version, site_url under the preferences is correct and working everywhere, index.php is being removed using htaccess
Though, the error message is not coming up now, but nothing is happening, cache is not being refreshed. Thoughts?
|
|
|
Causing Effect - Aaron Waldon
|
Posted: 19 June 2014 03:16 PM |
# 4
|
|
Developer
|
Hi Abhilekha!
If you feel comfortable with me logging in to take a look, you can send me EE super admin credentials at software at causingeffect.com. Go ahead and change the ce_cache_async config setting back to ‘yes’ (or just remove it altogether), so that I can test out the async cache breaking.
|
|
|
Causing Effect - Aaron Waldon
|
Posted: 22 July 2014 04:09 PM |
# 5
|
|
Developer
|
For anyone following along, I was given access to the site in question a few weeks ago to see what was happening, and the issue was two-fold. First, cURL on the server was default to IPv6 instead of IPv4 which was causing cURL requests to result in a 404. This is the first time I have encountered this issue over several years of using CE Cache, but the fix will be included in the next release of CE Cache.
The second issue was that the file driver was being used with over 20,000 cache items with a refresh time of a couple of seconds. Since most of the pages were taking several seconds to build, the cache time was not sufficient. Also, the file driver can start to choke on a huge amount of files at high traffic, so we switched to using the Redis driver.
|
|
|