{"id":1103,"date":"2013-09-14T18:50:30","date_gmt":"2013-09-14T18:50:30","guid":{"rendered":"http:\/\/musilda.cz\/?p=1103"},"modified":"2013-09-14T18:50:30","modified_gmt":"2013-09-14T18:50:30","slug":"funkce-delete_get_calendar_cache","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-delete_get_calendar_cache\/","title":{"rendered":"Funkce delete_get_calendar_cache"},"content":{"rendered":"

Funkce delete_get_calendar_cache() d\u011bl\u00e1 p\u0159esn\u011b to co je v jej\u00edm n\u00e1zvu. Ostatn\u011b to je na WordPressu hezk\u00e9, pojmenov\u00e1n\u00ed funkc\u00ed je pom\u011brn\u011b intuitivn\u00ed. Kdy\u017e budete popis funkce hledat v Codexu, nenajdete ho. Tak\u017ee takov\u00e1 men\u0161\u00ed premi\u00e9ra zde na musilda.cz.<\/p>\n

Funkce je to jednoduch\u00e1, v podstat\u011b je to wrap pro funkci wp_cache_delete, kter\u00e1 p\u0159ij\u00edm\u00e1 dva argumenty – $key a $groups. Vol\u00e1n\u00ed pak vypad\u00e1 takto\u00a0wp_cache_delete( ‚get_calendar‘, ‚calendar‘ ); a vyma\u017ee tedy cache kalend\u00e1\u0159e.<\/p>\n

Funkce je je\u0161t\u011b p\u0159i\u0159azena ke \u010dty\u0159em akc\u00edm:<\/p>\n