Plugin Directory

Changeset 2782935


Ignore:
Timestamp:
09/11/2022 09:08:37 AM (3 years ago)
Author:
pmpr
Message:

update codebase

Location:
pmpr-ir
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pmpr-ir/tags/1.2.1/src/Pmpr/Plugin/Pmpr/Component/Base.php

    r2782934 r2782935  
    162162    public function deleteTransients()
    163163    {
     164        $this->deleteUpdateNotification();
     165        $this->deleteInstalledListCache();
     166    }
     167   
     168    public function deleteUpdateNotification()
     169    {
    164170        delete_transient($this->getBubbleNotificationKey());
     171    }
     172   
     173    public function deleteInstalledListCache()
     174    {
    165175        delete_transient(Manipulate::getComponentsCacheKey($this->getType()));
    166176    }
     
    200210    public function adminInit()
    201211    {
    202         if ($this->isCurrentPage()) {
    203 
    204             $this->deleteTransients();
    205         }
    206 
    207212        $this->componentUpdateRows();
    208213        $transient = $this->getBubbleNotificationKey();
  • pmpr-ir/trunk/src/Pmpr/Plugin/Pmpr/Component/Base.php

    r2782934 r2782935  
    162162    public function deleteTransients()
    163163    {
     164        $this->deleteUpdateNotification();
     165        $this->deleteInstalledListCache();
     166    }
     167   
     168    public function deleteUpdateNotification()
     169    {
    164170        delete_transient($this->getBubbleNotificationKey());
     171    }
     172   
     173    public function deleteInstalledListCache()
     174    {
    165175        delete_transient(Manipulate::getComponentsCacheKey($this->getType()));
    166176    }
     
    200210    public function adminInit()
    201211    {
    202         if ($this->isCurrentPage()) {
    203 
    204             $this->deleteTransients();
    205         }
    206 
    207212        $this->componentUpdateRows();
    208213        $transient = $this->getBubbleNotificationKey();
Note: See TracChangeset for help on using the changeset viewer.