Skip to content

Commit

Permalink
🚑 Disable caching for the event server
Browse files Browse the repository at this point in the history
+ version 0.3.2
  • Loading branch information
Heroyt committed Nov 29, 2022
1 parent cb14a47 commit 74a4325
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ USER www-data
# Move to project directory
WORKDIR /var/www/html/

ENV LAC_VERSION="0.3.0"
ENV LAC_VERSION="0.3.2"
ENV LAC_MODELS_VERSION="0.3.0"

# Initialize git and download project
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "heroyt/laser-arena-control",
"description": "Systém pro lepší zpracování a sjednocení výsledků LaserGame z různých arén a různých výrobců.",
"type": "project",
"version": "0.3.0",
"version": "0.3.2",
"repositories": [
{
"type": "composer",
Expand Down
2 changes: 1 addition & 1 deletion docker/DockerfileNginx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN cron
# Move to project directory
WORKDIR /var/www/

ENV LAC_VERSION="0.3.0"
ENV LAC_VERSION="0.3.2"
ENV LAC_MODELS_VERSION="0.3.0"

# Initialize git and download project
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laserarenacontrol",
"version": "0.3.0",
"version": "0.3.2",
"description": "",
"main": "index.php",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/Services/EventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private static function getLogger() : Logger {
* @return Row[] Array of events ordered by their date from the most recent (descending)
*/
public static function getUnsent(bool $dev = false) : array {
return DB::select('events', '*')->where('%n = 0', $dev ? 'sent_dev' : 'sent')->orderBy('datetime')->desc()->fetchAll();
return DB::select('events', '*')->where('%n = 0', $dev ? 'sent_dev' : 'sent')->orderBy('datetime')->desc()->fetchAll(cache: false);
}

/**
Expand Down

0 comments on commit 74a4325

Please sign in to comment.