diggy / polylang-cli

WP-CLI community package of Polylang commands
https://github.com/diggy/polylang-cli
MIT License
34 stars 19 forks source link

command to list and flush cached .mo files #60

Open szepeviktor opened 7 years ago

szepeviktor commented 7 years ago

Hello @diggy !

Could you give Tiny translation cache a try on a site with persistent object cache?

https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/tiny-translation-cache.php

It may come handy for you.

diggy commented 7 years ago

Hi @szepeviktor thanks, looks useful! Are you suggesting to incorporate this functionality in polylang-cli? Or would you like to know if it plays nice with Polylang (CLI)?

szepeviktor commented 7 years ago

It's a cache tool to reduce page load time. It is WIP, the little sister of Tiny cache

I'd like you to be happy about this reduction. It has nothing to do with polylang-cli. Maybe the common roots: translations.

szepeviktor commented 7 years ago

After reading your comment the third time. There could be a command to list cached .mo files, and another one to flush them. The cache group is called mofile

diggy commented 7 years ago

sounds like an idea!

szepeviktor commented 7 years ago

I am still fighting over the cache key here https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/tiny-translation-cache.php#L77-L79

If you have any idea...

Other .mo file cache implementation include even more things in the key. https://plugins.trac.wordpress.org/browser/mo-cache/trunk/mo-cache.php#L35

szepeviktor commented 7 years ago

Moved to its own repo: https://github.com/szepeviktor/tiny-cache