Opened 5 years ago

Last modified 15 months ago

#226 new enhancement

delete single files from cache

Reported by: nitrox Owned by: moo
Priority: minor Milestone: 3.2.0
Component: cacher Version: 1.3.0
Keywords: Cc:
Application: PHP Version:
Other Exts: SAPI: Irrelevant
Probability: Blocked By:
Blocking:

Description

Hi!

In case someone doesn´t want to use stat() or if the filechange isn´t noticed, make it possible to delete a single file from cache, just like var-cache?

Change History (3)

comment:1 Changed 2 years ago by moo

  • Milestone changed from 1.3.3 to 2.1.0

comment:2 Changed 2 years ago by pierres

There is an actual use case for this: FluxBB. It uses a poor cache implementation where data is written as .php files. With disabled stat the new data wont get picked up. For APC it removes the single chache file on update. With XCache you need to invalidate the whole cache atm.

See code at: https://projects.archlinux.org/vhosts/bbs.archlinux.org.git/tree/include/cache.php

(I added the xcache calls myself; these are not in the official FluxBB distribution)

comment:3 Changed 15 months ago by moo

  • Milestone changed from 3.0.2 to 3.1.0
Note: See TracTickets for help on using tickets.