Sponsors


WordPress: Turning the cache off when making adjustments to your site




If you have a site that is moderately to highly active, then using a cache plugin on your site is highly recommended. The typical processing that happens when a user wants to view a post on a WordPress based site (or most other sites that use a database) (and without getting too technical, trying to use language that a non-expert would be able to understand) is that the WordPress engine will identify the post that the user wants to read, make a query to the database where the details of the post (the actual text of the post, the tags, the categories, and any other such details), get these back from the database and then publish these. This is done again and again for every user that wants to read a post, and can get resource intensive for the server which is hosting the site. If have a site that is not hyper-active, then you would probably be on a shared hosting setup on GoDaddy, HostGator, HostMonster, Bluehost, or some other hosting service (there are a large number of such hosting sites offering to host your content). If you end up with a lot of users and your server is taking up too many resources, these hosting sites need to protect the server on which your site (along with many other sites) is being hosted, and can actually stop your site.
Even if your site is not blocked, if the server is over-loaded, then the speed of page loading can be reduced significantly, and that can be pretty problematic. Slow page speeds can put off users and even impact your SEO; so what do you do ? Well, you use a plugin such as WP Super Cache or WP Total Cache. These plugins create static HTML pages that you provided to your users, and unless you have a site that is very dynamic, will work fairly well for you.
However, pretty recently I was running into a problem that was very confusing. I was making some adjustments to the positioning of ads and other elements on a site and then viewing the site to see how it would look. After making the change, I went to the site and refreshed, and lo and behold, the change did not reflect. Scratched the head a bit, went to the site editor, re-did the change and then refreshed, and nothing happened. This was very confusing, no logical reason for the same. I looked at the page source of the generated file, and it did not have the change, so the server was definitely not pushing out the change.
Research – I went to the internet and looked for reasons for the same, and found plenty of reasons. The plugins could be of a lower version, the WordPress version or theme version could be outdated – well, after a recent security scare I used to ensure that everything was of the latest updated version, and so on. I even went on a coffee break for some time to try to unclog my mind, but that did not work.
And then suddenly it struck me, I had installed a cache plugin (WP Super Cache), and maybe it could be causing the problem. So I went to the Admin interface, Settings -> WP Super Cache, and then turned Caching to off.

After this step, refreshing the blog showed me the changes as I had made them. Once satisfied with the changes I had made, I turned the cache setting to ‘On’ again. Problem solved.




Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>