-
AuthorPosts
-
March 4, 2020 at 5:10 am #1189883
Hello
I have 2 issues:1- i do not have a Themeforest Account. My web developer bought the license of Envato for me and gave me a PDF File containing the license Certificate and the item purchase code !
How can i update Enfold ? i am not longer in contact with my Ex-Developer !
In my Enfold Tab (WordPress Dashboard) it says : No Updates available. You are running the latest version! (4.6.3.1) however i can see that Enfold is now on a newer version !2- The website is not able to Cache due to theme error. when we disable the theme Enfold, the Caching happens, but when we activate Enfold, we can no longer cache the site . i am using Dreamhost (Dreampress) and they use “Proxy Cache Purge”
Needing Urgent Help ! Thanks !
March 5, 2020 at 4:13 am #1190283Hey Mohamad,
1. You need a token from Envato in order get automatic updates, is that added to the backend of your site under Enfold->Theme update? If not then I would recommend that you try to get access to the theme files in some way through your developer, or purchase a license of your own.
2. I haven’t heard of that problem happening before, how exactly do you know that the site is not being cached? Is Proxy Cache Purge something which is developed by Dreamhost?
Best regards,
RikardMarch 5, 2020 at 4:56 am #1190287Hello @Rikard
2- Yes it is developed by Dreamhost ! I have attached what the support told me
“The site is not currently cachable. That’ll affect the site performance.. The Proxy Cache is indeed a plugin developed by DreamHost. I don’t believe we can do much about it. It’s not just the plugin. The plugin helps you test the cache to ensure it is working. It’s more how the caching works. Some plugins/themes create cookies sessions that conflict with the server-side cache. The path forward is to contact Enfold to see if they can make the theme more cache-friendly; that’ll be how they code the theme. You could also try updating the theme, if that hasn’t been done.
Here you can see some scans from the plugin
https://ibb.co/2PrH0g6
https://ibb.co/d6sPQYg
https://ibb.co/6rYzrjZTheir support is also telling me:
We don’t recommend you use a different caching plugin but can certainly try. The thing is that we won’t be able to assist with the configuration.
– Do you have any solution or any comment regarding this issue ?
– Do you also think that the site is not caching because i am not on the latest Enfold Version (Now i am on 4.6.3.1)
– Do you think i can cache the website on another plugin that Enfold is more compatible with?
– Do you think in that case, the site performance would not be as good as if the site was cached on their own caching plugin ?Thank you
March 6, 2020 at 5:42 am #1190735Update:
After talking further with them, they clearly said:Enfold support team needs to know the theme is pushing the cache control header to no-cache, as well as the pragma header to the same (no-cache). This causes the server-side cache to not be able to cache
I hope you can help very soon !
March 9, 2020 at 12:39 pm #1191470Hi,
Sorry for the late reply!
We have forwarded their message to our devs. We will update you hear once we hear back from them regarding cache.
Are you experiencing any issue other than cache at the moment?
Best regards,
YigitMarch 9, 2020 at 4:36 pm #1191564Hello @Yigit
Thank you for the reply, i have opened a new support topic related to my main issue with cache since i thought that my previous message wasn’t readActually this is the only issue i guess .. for now ! but i am extremely late for the launching and i must solve this problem asap !
I hope you can push it further and have them treat this case as urgentThanks again !
March 9, 2020 at 5:15 pm #1191585Hi,
Could you please use either – https://wordpress.org/plugins/wp-super-cache/ or – https://wordpress.org/plugins/comet-cache/? Many users are only using cache plugins and not server side cache. Once we clarify server side cache issue, you could compare cache plugins with server side cache on a testing installation :)
Best regards,
YigitMarch 9, 2020 at 5:32 pm #1191597These are the problems:
https://ibb.co/2PrH0g6
https://ibb.co/d6sPQYg
https://ibb.co/6rYzrjZThe server-side cache cannot be deactivated, this is what they said !
This was the last message i got from their support:
The problem that’s causing the cache to not work properly is that when
Enfold is enabled, it forces the Cache-Control header to return
“no-store, no-cache, must-revalidate”, and the Pragma header to be set to
“no-cache”. This is what prevents the server-side cache to work and would
probably cause issues with all other cache services. Enfold should be
able to find why whenever the theme is enabled, the headers change to the
above.March 12, 2020 at 11:02 am #1192540March 12, 2020 at 1:41 pm #1192589Hi,
Have you tried using either one of the following plugins?
– https://wordpress.org/plugins/wp-super-cache/
– https://wordpress.org/plugins/comet-cache/Our devs said this is not Enfold related and I think so too, as we have not received such report before.
Best regards,
YigitMarch 12, 2020 at 5:30 pm #1192691Hello @yigit
This is so frustrating .. DreamPress is saying that the issue is with Enfold .. it is forcing the Cache-Control header to return
“no-store, no-cache, must-revalidate !
We have disabled all plugins, still same problem, then when we switched the Enfold them, the site started caching !
So i think it is clearly a problem with Enfold !I tried the plugins you mentioned, and they did not cache the site .. only few pages got a successful cache, however most of the site pages are not caching
I saw on your forum that other people had this issue and no solution was provided
https://kriesi.at/support/topic/enfold-seems-to-add-cache-disabling-headers/There is a problem with the removal of the no-cache headers specifically. which is something only Enfold can resolve i guess !
March 12, 2020 at 7:52 pm #1192731It’s directly related to a no-cache header Enfold theme puts down !!!
March 16, 2020 at 4:49 pm #1193528Hi,
Have you checked your websites caching while it is in maintenance mode? Enfold is only adding no-cache headers when response from the server is 404 or 503. If you have checked your website while in maintenance mode (503), that is actually expected.
Best regards,
YigitMarch 16, 2020 at 5:00 pm #1193535Hello @yigit
I have disabled Maintenance mode and tried ! it gave the same result !March 30, 2020 at 9:54 am #1199024Hi,
It’s directly related to a no-cache header Enfold theme puts down !!!
Sorry for the delay. The only time that the theme sets the header to no-cache is when someone is exporting the theme options, so those headers are definitely not set by the theme.
How do they check if the headers are actually set to no-cache? Are they using some kind of tool?
This is what we get when we check the headers of the kriesi.at site, which is using the Enfold theme, on https://httpstatus.io/
date Mon, 30 Mar 2020 07:50:15 GMT server Apache vary Accept-Encoding,Cookie cache-control max-age=3, must-revalidate upgrade h2,h2c connection Upgrade, close transfer-encoding chunked content-type text/html; charset=UTF-8
As you can see Cache-control has a max-age of 3 days.
Best regards,
IsmaelMarch 30, 2020 at 6:28 pm #1199120Hello @ismael
Thank you for the reply . i have had a lot of headache with this issue .. DreamPress say that the problem is from Enfold, and Enfold say the oppositeat last i installed Cloudflare but i don’t know if this will help me improve the site or not ! i am not even sure if i really need cache anymore !
Yes they use their own server side caching system and there is a plugin they use to check all this .. plugin name is
Proxy Cache PurgeMarch 31, 2020 at 2:28 am #1199236Hey!
Thank you for the update.
According to the following thread, the headers are added because of the PHP sessions, which is used by the theme to add extra options for the breadcrumbs and portfolio. The users there managed to use varnish and nginx reverse proxy caching by adding this code in the functions.php file.
function custom_theme_setup() { add_theme_support('avia_no_session_support'); } add_action( 'after_setup_theme', 'custom_theme_setup' );
This will disable all sessions generated by the theme and hopefully remove all unwanted headers that prevents caching from working properly.
// https://kriesi.at/support/topic/enfold-seems-to-add-cache-disabling-headers/#post-546256
Best regards,
IsmaelMarch 31, 2020 at 2:34 pm #1199337Hello Ismael
I got this error when i put this codeYour PHP code changes were rolled back due to an error on line 1436 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.
Cannot redeclare custom_theme_setup() (previously declared in wp-content/themes/enfold/functions.php:1400)
March 31, 2020 at 2:50 pm #1199342Hi,
It seems like you have already that code in functions.php file in line 1400.
If you have not, please use the code as following
function new_custom_theme_setup() { add_theme_support('avia_no_session_support'); } add_action( 'after_setup_theme', 'new_custom_theme_setup' );
Best regards,
YigitMarch 31, 2020 at 2:52 pm #1199343Yes correct i have it already !
April 3, 2020 at 12:11 pm #1200486Hi,
Is it working properly now? Please confirm it with your hosting provider.
Best regards,
IsmaelApril 3, 2020 at 7:15 pm #1200589Still not working !! but i think Cloud-flare is already doing a good job !
April 13, 2020 at 6:45 am #1203224Hi,
Glad to know that the alternative is working. Unfortunately, we might not be able to help you with the original issue further because it’s server related and we are not that familiar with it. Please feel free to open a new thread if you have more inquiries.
Thank you for your patience.
Best regards,
Ismael -
AuthorPosts
- The topic ‘Theme Update and Caching Problem’ is closed to new replies.