Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #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 !

    #1190283

    Hey 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,
    Rikard

    #1190287

    Hello @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/6rYzrjZ

    Their 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

    #1190735

    Update:
    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 !

    #1191470

    Hi,

    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,
    Yigit

    #1191564

    Hello @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 read

    Actually 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 urgent

    Thanks again !

    #1191585

    Hi,

    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,
    Yigit

    #1191597

    These are the problems:
    https://ibb.co/2PrH0g6
    https://ibb.co/d6sPQYg
    https://ibb.co/6rYzrjZ

    The 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.

    #1192540

    Hello @yigit @rikard
    Any updates?
    I am very late and i cannot release my website with this problem of caching !
    Can you please prioritize my issue

    • This reply was modified 4 years, 8 months ago by Cloudypro.
    #1192589

    Hi,

    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,
    Yigit

    #1192691

    Hello @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 !

    #1192731

    It’s directly related to a no-cache header Enfold theme puts down !!!

    #1193528

    Hi,

    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,
    Yigit

    #1193535

    Hello @yigit
    I have disabled Maintenance mode and tried ! it gave the same result !

    #1199024

    Hi,

    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,
    Ismael

    #1199120

    Hello @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 opposite

    at 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 Purge

    #1199236

    Hey!

    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,
    Ismael

    #1199337

    Hello Ismael
    I got this error when i put this code

    Your 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)

    #1199342

    Hi,

    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,
    Yigit

    #1199343

    Yes correct i have it already !

    #1200486

    Hi,

    Is it working properly now? Please confirm it with your hosting provider.

    Best regards,
    Ismael

    #1200589

    Still not working !! but i think Cloud-flare is already doing a good job !

    #1203224

    Hi,

    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

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Theme Update and Caching Problem’ is closed to new replies.