File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -120,20 +120,14 @@ public function getContents()
120
120
*/
121
121
public function getAttributes ()
122
122
{
123
- $ themeAttributes = json_decode ($ this ->getContents (), 1 );
123
+ $ attributes = json_decode ($ this ->getContents (), 1 );
124
124
125
125
// any JSON parsing errors should throw an exception
126
126
if (json_last_error () > 0 ) {
127
127
throw new InvalidJsonException ('Error processing file: ' . $ this ->getPath () . '. Error: ' . json_last_error_msg ());
128
128
}
129
129
130
- if (config ('themes-manager.cache.enabled ' , false ) === false ) {
131
- return $ themeAttributes ;
132
- }
133
-
134
- return app ('cache ' )->remember ($ this ->getPath (), config ('themes-manager.cache.lifetime ' ), function () use ($ themeAttributes ) {
135
- return $ themeAttributes ;
136
- });
130
+ return $ attributes ;
137
131
}
138
132
139
133
/**
You can’t perform that action at this time.
0 commit comments