Default Nur bestimmten Cache leeren / Empty explicit cache files

Hallo zusammen,

ich nutze oxid insofern, dass ich direkt in die DB schreibe. Ich weiß natürlicih, dass es Webservices gibt, aber für meinen Zweck muss ich direkt in die DB meine Anpassungen schreiben.
Nun habe ich das Problem, dass ich nicht jedes Mal den gesamten Cache leeren kann, wenn ich irgendetwas in der DB angepasst habe, da dies bei ca. 50.000 Modifikationen / Tag dazu führt, dass eigentlich nur noch der Cache geleert wird und dementsprechend die Performance des Shops gen Null geht.

Mein Anliegen wäre nun auf eine Funktion zurückzugreifen, die nach der Modifikation bspw. der Stückzahl des Artikels mit der ID "12345", nur den Cache für diesen Artikel löscht.

Grundsätzlich muss das ja möglich sein, da ja das gleiche passiert, wenn ich im Backend von Oxid eine Stückzahl bei einem Artikel aktualisiere.

Kann mir hier jemand helfen?


-------------------------------------------------------------------

Hello everyone,

i´m using Oxid without webservices, instead i´m writing into the database (DB) directly. Since i don´t want to delete the whole tmp folder to make my modifications work, i´m looking for a way to renew only those cache files which are connected to my modifications in the database.

Example:
I´m updating the stock of article No. "12345" from 7 to 50 items directly in the DB. Now i want to call some function that renews / deletes the cache files for the article "12345".
Since this is possible via the backend or the webservices there has to be a way to do that.

Anyone help please?
Reply With Quote