You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read your docs for this redis cache component of Typecho, but I think your method of putting cache operation in index.php might not be good.
As the official documents requested, each time a Typecho user updates the program, index.php should be replaced with a newer version. And to keep replacing script file after upgrading everytime is neither unnecessary nor convinient.
I think this post might do your project some help: http://lantian.eu.org/article/modify-website/memcache-typecho-acceleration.lantian . The author used a much simpler way to treat cached items, but what I want to show you is this: he put some cache operation (read/get) in config.inc.php, and others (write/put) in theme script files. Since config.inc.php is never changed after the first installation, I think it's a better idea. What's more, by doing so Typecho does not need to connect to the database if the cache exists.
However, it's surely not so wise to perform cache writing in theme scripts, I mus say.
And at last, thank you for your work on caching method for Typecho.
The text was updated successfully, but these errors were encountered:
First of all, this is just a suggestion.
I have read your docs for this redis cache component of Typecho, but I think your method of putting cache operation in
index.php
might not be good.As the official documents requested, each time a Typecho user updates the program,
index.php
should be replaced with a newer version. And to keep replacing script file after upgrading everytime is neither unnecessary nor convinient.I think this post might do your project some help: http://lantian.eu.org/article/modify-website/memcache-typecho-acceleration.lantian . The author used a much simpler way to treat cached items, but what I want to show you is this: he put some cache operation (read/get) in
config.inc.php
, and others (write/put) in theme script files. Sinceconfig.inc.php
is never changed after the first installation, I think it's a better idea. What's more, by doing so Typecho does not need to connect to the database if the cache exists.However, it's surely not so wise to perform cache writing in theme scripts, I mus say.
And at last, thank you for your work on caching method for Typecho.
The text was updated successfully, but these errors were encountered: