Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command to list and flush cached .mo files #60

Open
szepeviktor opened this issue Jun 7, 2017 · 6 comments
Open

command to list and flush cached .mo files #60

szepeviktor opened this issue Jun 7, 2017 · 6 comments

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Jun 7, 2017

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
Copy link
Owner

diggy commented Jun 7, 2017

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
Copy link
Contributor Author

szepeviktor commented Jun 7, 2017

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
Copy link
Contributor Author

szepeviktor commented Jun 7, 2017

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
Copy link
Owner

diggy commented Jun 7, 2017

sounds like an idea!

@diggy diggy changed the title [off] Cache .mo files command to list and flush cached .mo files Jun 7, 2017
@szepeviktor
Copy link
Contributor Author

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
Copy link
Contributor Author

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

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

No branches or pull requests

2 participants