Forum Subscriber Support - Joomla Extension - Erweiterungen PCE - Page Cache Extended Bestimmten Artikel im Cache löschen Bestimmten Artikel im Cache löschen
3 years 1 month ago #12093 by HArrypotter06 Oft kommt es vor, dass bestimmte Artikel inhaltlich geändert werden. Damit die Nutzer nun die Änderung lesen, muss ich immer den gesamte Chache löschen, was eigentlich "sinnlos" ist.
Nun habe ich mir überlegt, ob es eine Möglichkeit gibt, nur bestimmten Content im Cache zu loschen?
Die Dateien sehe ja so aus : "019e6aa631d6eb17c7a6b1a2c6166cf6-cache-page-e2f18a0eb8716ab303e92844d500a5b2.php" - wenig zuordnungsfähig um zu erkennen, welche Datei zu welchem Artikel gehört. Also: Immer den gesamten Cache-Ordner löschen? Oder steht irgendwo welche Artikel dahinter stehen?
Im Netz habe ich das gefunden:
$url = "test";
$options = array(
'defaultgroup' => 'page',
'browsercache' => false,
'caching' => false,
);
$cache = JCache::getInstance('page',$options);
$id = md5(serialize("/$url"));
$cache->remove($id,'page'); Ist das ein Ansatz und wenn ja, wie könnte man das implementieren?
Danke und Grüße
Klaus
The topic has been locked.
HArrypotter06 Topic Author Offline Junior Member Less More Posts: 30 Thank you received: 1 3 years 1 month ago #12094 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions
This message has an attachment image. Please log in or register to see it. The topic has been locked.
Less More Posts: 7309 Thank you received: 776 3 years 1 month ago #12096 by HArrypotter06 Please log in to see the response. Attention: You need a valid
subscription to activate an account.
The topic has been locked.
HArrypotter06 Topic Author Offline Junior Member Less More Posts: 30 Thank you received: 1 3 years 1 month ago #12097 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions The topic has been locked.
Less More Posts: 7309 Thank you received: 776 3 years 1 month ago #12098 by HArrypotter06 Please log in to see the response. Attention: You need a valid
subscription to activate an account.
The topic has been locked.
HArrypotter06 Topic Author Offline Junior Member Less More Posts: 30 Thank you received: 1 3 years 1 month ago #12100 by HArrypotter06 Please log in to see the response. Attention: You need a valid
subscription to activate an account.
The topic has been locked.
HArrypotter06 Topic Author Offline Junior Member Less More Posts: 30 Thank you received: 1 3 years 1 month ago #12101 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions The following user(s) said Thank You: HArrypotter06
The topic has been locked.
Less More Posts: 7309 Thank you received: 776 3 years 1 month ago #12105 by HArrypotter06 Please log in to see the response. Attention: You need a valid
subscription to activate an account.
The following user(s) said Thank You: Viktor
The topic has been locked.
HArrypotter06 Topic Author Offline Junior Member Less More Posts: 30 Thank you received: 1 3 years 1 month ago #12118 by HArrypotter06 Please log in to see the response. Attention: You need a valid
subscription to activate an account.
The topic has been locked.
HArrypotter06 Topic Author Offline Junior Member Less More Posts: 30 Thank you received: 1 3 years 1 month ago - 3 years 1 month ago #12119 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions The topic has been locked.
Less More Posts: 7309 Thank you received: 776
Forum Subscriber Support - Joomla Extension - Erweiterungen PCE - Page Cache Extended Bestimmten Artikel im Cache löschen
Time to create page: 0.215 seconds