Jump to content

Using expiry selectors with $cache


MarkE
 Share

Recommended Posts

I am attempting to use an expiry for a cache item that is triggered by page updates matching the selected pages.

Doing $cache->getInfo() shows that the cache item has been created correctly:

[311] => Array ( [name] => dueNoticeBkg459 [type] => array (2 items) [expires] => when selector matches modified page [selector] => (template=Settings|BusinessProcess|BookingStatus), (template=Booking, title=Bkg459), include=hidden [size] => 271 )

I've tested the selector in the "selector test" module and it lists the correct pages. However, if I change and save one of those pages, the cache item has not expired. It works with a simpler selector such as 

"template=Settings, include=hidden"

but not with the "or group". Are "or groups" not allowed in this context, or am I doing something wrong?

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

  • Recently Browsing   0 members

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