Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

[off] Tiny cache plugin #479

Closed
szepeviktor opened this issue May 12, 2017 · 4 comments
Closed

[off] Tiny cache plugin #479

szepeviktor opened this issue May 12, 2017 · 4 comments

Comments

@szepeviktor
Copy link
Owner

szepeviktor commented May 12, 2017

Hello!

I am developing a very tiny (98 sloc) cache plugin
https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/tiny-cache

  • uses persistent object cache
  • caches only the_content() calls thus most of the HTML body
  • for now it only works by replacing the_content() in the theme's code

Any thoughts?

@nigrosimone
Copy link
Collaborator

nigrosimone commented May 13, 2017

caches only the_content()

good idea... i have also developed two small plugin (both are 5 KB):

i think partial caching is the better way into wp ecosystem. If user need a full cache of all the page, Varnish is the way.

Your idea is good because more themes have visual builder based on shorttag and this introduce a very slow rendering of the page. Maybe, you can cache the_content only if the content has a shorttag.

@szepeviktor
Copy link
Owner Author

szepeviktor commented May 13, 2017

Thank you!

A tiny style translation cache plugin is worth considering. Featuring purge and proper keys.

Maybe, you can cache the_content only if the content has a shorttag.

Don't forget about the_content filter, it does heavy lifting too.

@szepeviktor
Copy link
Owner Author

szepeviktor commented May 15, 2017

@szepeviktor
Copy link
Owner Author

szepeviktor commented Dec 7, 2017

Improved and moved to a separate repo: https://github.com/szepeviktor/tiny-cache

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants