Mobile app version of vmapp.org
Login or Join
Cugini213

: Will small random dynamic snippets break caching I am busy writing a WordPress plugin. Now most users have cache plugins installed, they cache the pages. I know also some webservers as nginx

@Cugini213

Posted in: #Cache

I am busy writing a WordPress plugin. Now most users have cache plugins installed, they cache the pages. I know also some webservers as nginx have php caching and whatnot. There are also things like memcached.

Now I have to admit I do not know exactly how they work, if anyone have some good links on how they work I would be glad. Some links where it's explained simple, not to technical.

Now the question. My plugin displays different statistics on posts, they are always different, will this break the caching of the page. To take is a step further, sometimes the statistics of the post needs updating, and there is a small javascript snippet added to the page.

Now will these two action result in the page not caching, or am I ok.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

From what you have described I would be less worried about your plugin breaking caching and more worried about someones caching setup breaking your plugin, this isn't something you can control but it is something you can try and mitigate against by using the common best practices on plugin creation.

If you are worried about a specific caching plugin my suggestion would be to test it, it is the only way to know for sure.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme