How can I use memcache to access the template cache? Cache
To make the website faster. Please give me some advice !!
Reply to discussion (solution)
It is nothing more than checking whether there is a cache in memcache before reading the database. if it hits the cache, it directly retrieves the data cached in memcache and then reads the data in the database if it does not hit the cache.
It is nothing more than checking whether there is a cache in memcache before reading the database. if it hits the cache, it directly retrieves the data cached in memcache and then reads the data in the database if it does not hit the cache.
But how can we make the cache in memcache run like code?
It is nothing more than checking whether there is a cache in memcache before reading the database. if it hits the cache, it directly retrieves the data cached in memcache and then reads the data in the database if it does not hit the cache.
But how can we make the cache in memcache run like code?
Memcached caches data (various data, objects, arrays, etc ..), If you need template caching, you need a template caching engine similar to smarty.
Php. ini
Allow_url_include = on
Include "data: //,". content read from memcache
It is nothing more than checking whether there is a cache in memcache before reading the database. if it hits the cache, it directly retrieves the data cached in memcache and then reads the data in the database if it does not hit the cache.
But how can we make the cache in memcache run like code?
Memcache stores content such as key => value. it can be used only after it is read. You save an "edho 'hello';". after reading it, you can use eval () to execute it.
MC is suitable for storing data. For a publish page, you can directly generate a static page.