Jump to content

Memcache(d) Page Cache


Recommended Posts

Hi guys,
 
is there a simply way to hook directly into ProcessWire build-in page cache (not markup cache)? I will code a module to use memcache(d) as an alternative to build-in filesystem based page cache. So, i need to bypass the page cache function, but i can't find any hook for this.
 
Regards, 
Dave
Link to comment
Share on other sites

Have a look in /wire/modules/PageRender.module. If you find it would be helpful to have any of those methods hookable that aren't already, let me know and we can do that. We've also got /wire/core/CacheFile.php which we may be able to modify to inject a file system dependency or make parts of it hookable.

The way that I implemented caching with ProCache was to just make it something completely separate from the template caching, though not sure that would be the right route for your needs or not. But this route involves hooking after Page::render() and saving the result to a file. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...