Jump to content

[solved] Let $cache expire with request


thausmann
 Share

Recommended Posts

Hello, I'm wondering if there is way to use $cache so it lasts exactly for one request, something like WireCache::expiresRequest?

Edit: I didn't think right, I can simply delete the cache when I'm done. And cache is probably overkill, in memory should be fine.

I wrote a cron php script that bootstraps ProcessWire and sends out some e-mails with an ICS file attached. 
I thought about caching the different files (the filepath to be precise) instead of generating the same over and over again. 

Link to comment
Share on other sites

  • thausmann changed the title to [solved] Let $cache expire with request

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...