Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function getNamespace(): string |
||
25 | { |
||
26 | // (Needed for development) Don't share cache among plugin versions |
||
27 | $timestamp = '_v' . \GRAPHQL_API_VERSION; |
||
28 | // The timestamp from when last saving settings/modules to the DB |
||
29 | $userSettingsManager = UserSettingsManagerFacade::getInstance(); |
||
30 | $timestamp .= '_' . $userSettingsManager->getTimestamp(); |
||
31 | // admin/non-admin screens have different services enabled |
||
32 | if (\is_admin()) { |
||
33 | $timestamp .= '_admin'; |
||
34 | } |
||
35 | return $timestamp; |
||
36 | } |
||
38 |