• Resolved maxn19

    (@maxn19)


    Hi,

    Recently installed this plugin and enabled caching on it and on the Siteground hosting backend. But it doesn’t appear that the caching is working properly. Whenever I check any page with the Test URL Caching Status, it always errors out to: “The URL is not cached“. The only front-end plugins I have are:

    • WPBakery Page Builder
    • EasyFonts
    • Really Simple SSL
    • Debloat (was still not working when this plugin was not installed)
    • EWWW Image Optimizer

    Any thoughts on why it is not caching pages? I found an older article that cookies caused an issue, but I removed the one cookie I had (PHPSESSID) and the error is still there.

    Thanks,
    Max

    https://sacabc.ca

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support kuzmanstoyanov

    (@kuzmanstoyanov)

    Hello @maxn19,

    The reason for the issue is the presence of a no-cache directive in sacabc.ca’s cache-control header:

    cache-control: no-store, no-cache, must-revalidate
    pragma: no-cache

    This directive is instructing the server to disable the cache, thus the “The URL is not cached” response:

    x-proxy-cache: MISS
    x-proxy-cache-info: 0 NC:000000 UP:SKIP_CACHE_NO_CACHE

    You can check the headers of your website with online tools such as this one.

    We are unable to tell you which plugin is adding the no-cache directive. You should disable them one-by-one until you find the one causing the problem.

    Best Regards,
    Kuzman Stoyanov

    Thread Starter maxn19

    (@maxn19)

    Hi @kuzmanstoyanov ,

    Thanks for your guidance. I disabled the plugins one-by-one but both cache-control & pragma and x-proxy-cache & x-proxy-cache-info did not change.

    Could adding a cache-control header to .htaccess overwrite the plugin’s is issuing the instructions?

    Sorry, I’m fairly new to WordPress and web management.

    Cheers,
    Max

    Plugin Support kuzmanstoyanov

    (@kuzmanstoyanov)

    @maxn19,

    Trying to overwrite the headers with .htaccess may not work. The best course of action is to find the software which is adding it.

    I noticed that the site uses the Enfold theme, which appears to be adding such headers, according to this thread.

    You may also try to temporarily switch to some of the default WordPress themes to verify if the issue persists. If changing the theme resolves the issue, you should get more familiar with the theme settings and find which one is adding the no-cache directive.

    Best Regards,
    Kuzman Stoyanov

    Thread Starter maxn19

    (@maxn19)

    Thank you for your help @kuzmanstoyanov! Enfold was the issue. I looked through the settings but found no references to caching, but we are on an older version. I will update to the latest version and hopefully can fix the issue. In the meantime, I just added

    session.use_cookies=0
    session.cache_limiter=public

    to php.ini as a hotfix for now as we do not have any use for cookies at the moment.

    Cheers,
    Max

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URL is not cached error’ is closed to new replies.