$me
$me :
This class handles the count cache for the folder structure.
updateCountCache(array<mixed,integer> $folders = null,array<mixed,integer> $attachments = null,boolean $onlyReturn = false): string|null
Handle the count cache for the folders. This should avoid a lack SQL subquery which loads data from the posts table.
array<mixed,integer> | $folders | Array of folders ID, if null then all folders with cnt = NULL are updated |
array<mixed,integer> | $attachments | Array of attachments ID, is merged with $folders if given |
boolean | $onlyReturn | Set to true if you only want the SQL query |
resetCountCache(integer $folderId = null): \MatthiasWeb\RealMediaLibrary\attachment\CountCache
Reset the count cache for the current blog id. The content of the array is not prepared for the statement
integer | $folderId | Array If you pass folder id/ids array, only this one will be reset. |
getInstance(): \MatthiasWeb\RealMediaLibrary\attachment\CountCache
Get instance.