Support » Fixing WordPress » Caching help

  • Hello,

    I’m looking for some advice / help with caching on our WP Installs.

    I will try to explain as best as I can…

    We are running a very custom portal that’s having changes made daily to the code and the structure. Some minor, some major. Some are DB updates and data changes. The portal, is using post types and everything is running front end, with our own custom theme, no templates etc. Everything is PHP / bootstrap.

    We are hosted on our own, Centos 7 Server with cPanel. The portal has it’s own dedicated server.. yet we are having and issue with caching. Every change thats made, everyone in the office is having to clear their cache on the browsers etc. Now, I know that there is a level of this to be expected and I keep explaining but i’m wondering if there is anything that can be done to help this.

    Any ideas, would be super and just a point in the right direction.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • In WordPress themes there’s two functions often used to pull in JS and CSS: wp_enqueue_style() and wp_enqueue_script(). They both have a method to set a string and append it to css/js resources being called for the site. See for more information. In most cases this string is a series of numbers representing the date that the resource was last updated/modified (‘20180713’). This is done to help browsers cache these resources. When these resources get updated, the developer can then update that string, thus “busting” the browsers cache as the browsers view it as a new resource. So potentially look at that as a way to help “bust” caching.

    But if the caching is happening at the server level, then you’ll need to try some other approaches. I’m not an expert in that so I’ll let others chime in on how to handle that.

Viewing 1 replies (of 1 total)
  • The topic ‘Caching help’ is closed to new replies.